

//
//  BookController.m
//  DFront
//
//  Created by lanou on 15/10/28.
//  Copyright © 2015年 xuzenghui. All rights reserved.
//

#import "BookController.h"
#import "BookDisscussTableViewController.h"
@interface BookController ()

@end

@implementation BookController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view addSubview:self.topView];
    [self.topView addSubview:self.backBtn];
    self.view.backgroundColor = [UIColor whiteColor];
    UIScrollView *ScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 64, kScreenWidth, kScreenHeight - 64)];
    ScrollView.contentSize = CGSizeMake(kScreenWidth, 0);
    [self.view addSubview:ScrollView];
    
    BookDisscussTableViewController *bookVC = [[BookDisscussTableViewController alloc] init];
    [self addChildViewController:bookVC];
    bookVC.view.frame = CGRectMake(0, 0, kScreenWidth, kScreenHeight - 64);
    [ScrollView addSubview:bookVC.view];
    
    UIScrollView *aScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(kScreenWidth / 2 - 70, 7, kScreenWidth / 2 + 67, 34)];
    aScrollView.backgroundColor = [UIColor colorWithRed:0.875 green:0.173 blue:0.043 alpha:1.000];
    [self.topView addSubview:aScrollView];
    aScrollView.contentSize = CGSizeMake(kScreenWidth / 3, 0);
    UIButton *aBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    aBtn.frame = CGRectMake(0, 0, kScreenWidth / 4, 34);
    [aBtn setTitle:@"本本大讨论" forState:UIControlStateNormal];
    [aScrollView addSubview:aBtn];
    aBtn.titleLabel.font = [UIFont systemFontOfSize:16];
    
}



@end
